package aorise.com.frame.ui.main;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import aorise.com.frame.R;
import aorise.com.frame.base.ActivityActionBarClick;
import aorise.com.frame.base.BaseFragment;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * A simple {@link Fragment} subclass.
 */
public class PersonalFragment extends BaseFragment implements ActivityActionBarClick {
    private static final String TAG = PersonalFragment.class.getSimpleName();
    private View rootView;
    Unbinder unbinder;
    @BindView(R.id.actionbar)
    View actionBarView;

    public PersonalFragment() {

    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment

        rootView = inflater.inflate(R.layout.fragment_personal,
                container, false);
        unbinder = ButterKnife.bind(this, rootView);

        initActionBar(actionBarView, this);
        getActionbarTitleView(getActivity()).setText("个人信息");

        return rootView;
    }

    @Override
    public void onResume() {
        super.onResume();

    }

    @Override
    public void onHiddenChanged(boolean hidden) {
        super.onHiddenChanged(hidden);
        Log.i(TAG, "onHiddenChanged: "+hidden);
        if (!hidden) {
            // 在最前端显示 相当于调用了onResume();
        }else {
            // 不在最前端显示 相当于调用了onPause();

        }
    }



    @Override
    public void onBackClick() {

    }

    @Override
    public void onMenuClick() {

    }
}
